package com.fairyzww.cloud.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DirectoryInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DirectoryInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDirectoryIdIsNull() {
            addCriterion("directory_id is null");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdIsNotNull() {
            addCriterion("directory_id is not null");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdEqualTo(Integer value) {
            addCriterion("directory_id =", value, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdNotEqualTo(Integer value) {
            addCriterion("directory_id <>", value, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdGreaterThan(Integer value) {
            addCriterion("directory_id >", value, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directory_id >=", value, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdLessThan(Integer value) {
            addCriterion("directory_id <", value, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdLessThanOrEqualTo(Integer value) {
            addCriterion("directory_id <=", value, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdIn(List<Integer> values) {
            addCriterion("directory_id in", values, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdNotIn(List<Integer> values) {
            addCriterion("directory_id not in", values, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdBetween(Integer value1, Integer value2) {
            addCriterion("directory_id between", value1, value2, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directory_id not between", value1, value2, "directoryId");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameIsNull() {
            addCriterion("directory_name is null");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameIsNotNull() {
            addCriterion("directory_name is not null");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameEqualTo(String value) {
            addCriterion("directory_name =", value, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameNotEqualTo(String value) {
            addCriterion("directory_name <>", value, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameGreaterThan(String value) {
            addCriterion("directory_name >", value, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameGreaterThanOrEqualTo(String value) {
            addCriterion("directory_name >=", value, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameLessThan(String value) {
            addCriterion("directory_name <", value, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameLessThanOrEqualTo(String value) {
            addCriterion("directory_name <=", value, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameLike(String value) {
            addCriterion("directory_name like", value, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameNotLike(String value) {
            addCriterion("directory_name not like", value, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameIn(List<String> values) {
            addCriterion("directory_name in", values, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameNotIn(List<String> values) {
            addCriterion("directory_name not in", values, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameBetween(String value1, String value2) {
            addCriterion("directory_name between", value1, value2, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryNameNotBetween(String value1, String value2) {
            addCriterion("directory_name not between", value1, value2, "directoryName");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthIsNull() {
            addCriterion("directory_depth is null");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthIsNotNull() {
            addCriterion("directory_depth is not null");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthEqualTo(Integer value) {
            addCriterion("directory_depth =", value, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthNotEqualTo(Integer value) {
            addCriterion("directory_depth <>", value, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthGreaterThan(Integer value) {
            addCriterion("directory_depth >", value, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthGreaterThanOrEqualTo(Integer value) {
            addCriterion("directory_depth >=", value, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthLessThan(Integer value) {
            addCriterion("directory_depth <", value, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthLessThanOrEqualTo(Integer value) {
            addCriterion("directory_depth <=", value, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthIn(List<Integer> values) {
            addCriterion("directory_depth in", values, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthNotIn(List<Integer> values) {
            addCriterion("directory_depth not in", values, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthBetween(Integer value1, Integer value2) {
            addCriterion("directory_depth between", value1, value2, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andDirectoryDepthNotBetween(Integer value1, Integer value2) {
            addCriterion("directory_depth not between", value1, value2, "directoryDepth");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNull() {
            addCriterion("parent_id is null");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNotNull() {
            addCriterion("parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andParentIdEqualTo(Integer value) {
            addCriterion("parent_id =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotEqualTo(Integer value) {
            addCriterion("parent_id <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThan(Integer value) {
            addCriterion("parent_id >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("parent_id >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThan(Integer value) {
            addCriterion("parent_id <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThanOrEqualTo(Integer value) {
            addCriterion("parent_id <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdIn(List<Integer> values) {
            addCriterion("parent_id in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotIn(List<Integer> values) {
            addCriterion("parent_id not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdBetween(Integer value1, Integer value2) {
            addCriterion("parent_id between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("parent_id not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Integer value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Integer value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Integer value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Integer value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Integer> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Integer> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeIsNull() {
            addCriterion("delete_time is null");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeIsNotNull() {
            addCriterion("delete_time is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeEqualTo(Date value) {
            addCriterion("delete_time =", value, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeNotEqualTo(Date value) {
            addCriterion("delete_time <>", value, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeGreaterThan(Date value) {
            addCriterion("delete_time >", value, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("delete_time >=", value, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeLessThan(Date value) {
            addCriterion("delete_time <", value, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeLessThanOrEqualTo(Date value) {
            addCriterion("delete_time <=", value, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeIn(List<Date> values) {
            addCriterion("delete_time in", values, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeNotIn(List<Date> values) {
            addCriterion("delete_time not in", values, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeBetween(Date value1, Date value2) {
            addCriterion("delete_time between", value1, value2, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andDeleteTimeNotBetween(Date value1, Date value2) {
            addCriterion("delete_time not between", value1, value2, "deleteTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeIsNull() {
            addCriterion("recovery_time is null");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeIsNotNull() {
            addCriterion("recovery_time is not null");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeEqualTo(Date value) {
            addCriterion("recovery_time =", value, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeNotEqualTo(Date value) {
            addCriterion("recovery_time <>", value, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeGreaterThan(Date value) {
            addCriterion("recovery_time >", value, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("recovery_time >=", value, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeLessThan(Date value) {
            addCriterion("recovery_time <", value, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeLessThanOrEqualTo(Date value) {
            addCriterion("recovery_time <=", value, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeIn(List<Date> values) {
            addCriterion("recovery_time in", values, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeNotIn(List<Date> values) {
            addCriterion("recovery_time not in", values, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeBetween(Date value1, Date value2) {
            addCriterion("recovery_time between", value1, value2, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andRecoveryTimeNotBetween(Date value1, Date value2) {
            addCriterion("recovery_time not between", value1, value2, "recoveryTime");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateIsNull() {
            addCriterion("directory_create is null");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateIsNotNull() {
            addCriterion("directory_create is not null");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateEqualTo(Date value) {
            addCriterion("directory_create =", value, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateNotEqualTo(Date value) {
            addCriterion("directory_create <>", value, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateGreaterThan(Date value) {
            addCriterion("directory_create >", value, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("directory_create >=", value, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateLessThan(Date value) {
            addCriterion("directory_create <", value, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateLessThanOrEqualTo(Date value) {
            addCriterion("directory_create <=", value, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateIn(List<Date> values) {
            addCriterion("directory_create in", values, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateNotIn(List<Date> values) {
            addCriterion("directory_create not in", values, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateBetween(Date value1, Date value2) {
            addCriterion("directory_create between", value1, value2, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryCreateNotBetween(Date value1, Date value2) {
            addCriterion("directory_create not between", value1, value2, "directoryCreate");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyIsNull() {
            addCriterion("directory_modify is null");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyIsNotNull() {
            addCriterion("directory_modify is not null");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyEqualTo(Date value) {
            addCriterion("directory_modify =", value, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyNotEqualTo(Date value) {
            addCriterion("directory_modify <>", value, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyGreaterThan(Date value) {
            addCriterion("directory_modify >", value, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyGreaterThanOrEqualTo(Date value) {
            addCriterion("directory_modify >=", value, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyLessThan(Date value) {
            addCriterion("directory_modify <", value, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyLessThanOrEqualTo(Date value) {
            addCriterion("directory_modify <=", value, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyIn(List<Date> values) {
            addCriterion("directory_modify in", values, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyNotIn(List<Date> values) {
            addCriterion("directory_modify not in", values, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyBetween(Date value1, Date value2) {
            addCriterion("directory_modify between", value1, value2, "directoryModify");
            return (Criteria) this;
        }

        public Criteria andDirectoryModifyNotBetween(Date value1, Date value2) {
            addCriterion("directory_modify not between", value1, value2, "directoryModify");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}